package hyit.app.dao;

import java.util.List;

import hyit.app.model.SecondaryAccount;

public interface ISecondaryAccountDAO {
	public boolean doCreate(SecondaryAccount sa) throws Exception;

	public boolean update(SecondaryAccount sa) throws Exception;

	public SecondaryAccount delete(SecondaryAccount sa) throws Exception;

	public SecondaryAccount checkAccount(String account) throws Exception;

	public SecondaryAccount validate(String account, String password)
			throws Exception;

	public SecondaryAccount validateByCard(String cardMac)throws Exception;
	
	public List<SecondaryAccount> getByKeyID(Integer keyID) throws Exception;
}
